<?
Class CartModule{
    var $_connect;
    var $error;
    function CartModule() {
        $this->_connect = new Dataconnection();
    }
    function InsertOrder($name,$category,$organization,$starr, $viewer, $image,$title, $_type, $brief, $des,$img1,$img2,$img3,$img4,$img5,$price,$amount){
        $acc=$_SESSION["accountID"];
        
        $SQLCommand="
        INSERT 
            `_template`(
                        `name`,`category`,`organization`,`starr`,`viewer`,`img`,`title`,`_type`,`brief`,`description`,`insert`,`account`,`img1`,`img2`,`img3`,`img4`,`img5`,`price`,`amount`
            )
            VALUE(
                        '$name','$category','$organization','$starr','$viewer','$image','$title','$_type','$brief','$des',now(),'$acc','$img1','$img2','$img3','$img4','$img5','$price','$amount'
            )
        ";
        $n=$this->_connect->executeNoneSQL($SQLCommand);
        $this->error=$this->_connect->error;
        if($n==1) {
            return true;
        }
        return false;
    }
    
}
?>